<?php
/**
 * Created by JetBrains PhpStorm.
 * User: zhenzhen
 * Date: 12-9-19
 * Time: 下午12:34
 * To change this template use File | Settings | File Templates.
 */
class work_origModel extends viewModel{
    public $join=array(
        'sort'=>array(
            'type'=>'MANY_TO_MANY',
            'relation_table'=>'work_sort_color',
            'relation_table_parent_key'=>'wid',
            'relation_table_foreign_key'=>'soid',
            'field'=>'soname'
        ),
        'color'=>array(
            'type'=>'MANY_TO_MANY',
            'relation_table'=>'work_sort_color',
            'relation_table_parent_key'=>'wid',
            'relation_table_foreign_key'=>'soid',
            'field'=>'colorname'
        ),

    );
}